import config from './config.js'
import apiUntil from './apiUntil.js'
import methodUntil from './methodUntil.js'
import audioUntil from './audioUntil.js'
import Vue from 'vue'

//合并所有对象
const resultOption = Object.assign({
	apiUntil,
	methodUntil,
	audioUntil
})
//遍历对象 将方法注入原型链
for (const key in resultOption) {
	for (const keys in resultOption[key]) {
		Vue.prototype[keys] = resultOption[key][keys]
	}
}
Vue.prototype.config = config
